Method for optimizing a dsp input clock using a comparing/analyzing circuit

ABSTRACT

A method optimizes a DSP Input clock using a clock comparing/analyzing circuit. The method of the present invention enables PLD to select a delay function of the PLD and signals from a plurality of patterns, in addition to varying three elements&#39; values of R, L and C, a driver delay, and a characteristic change by peripheral elements of patterns that a clock passes to thereby obtain an optimal characteristic. Particularly, the inventive method provides an optimal clock with the best performance among clocks from the pattern. This method has the following two functions: (1) allowing the paths from a plurality of patterns to be scanned individually and a pattern having the lowest noise level to be searched; (2) searching the maximum SNR(Signal to Noise) value by providing a delay offset to an optimal path having the lowest noise level which is searched from the first function, and wherein an optimal path is searched and connected by checking the operation periodically by a timer to provide optimal characteristics in case peripheral environments change.

TECHNICAL FIELD

The present invention relates to a method of optimizing a DSP input clock using a clock comparing/analyzing circuit. Particularly, the method of the present invention enables PLD to select a delay function of the PLD and signals from a plurality of patterns, in addition to varying three elements' values of R, L and C, a driver delay, and a characteristic change by peripheral elements of patterns that a clock passes to thereby obtain an optimal characteristic.

More particularly, the inventive method provides an optimal clock having the best performance among clocks from the pattern. This method has the following two functions: (1) allowing the paths from a plurality of patterns to be scanned individually and a pattern having the lowest noise level to be searched; and (2) searching the maximum SNR (Signal to Noise) value by providing a delay offset to an optimal path having the lowest noise level which is searched from the first function, wherein an optimal path is searched and connected by checking the operation periodically by a timer to provide optimal characteristics in case peripheral environments change.

BACKGROUND ART

In a board which employs an A/D or D/A converter and processes digital signals by DSP (Digital Signal Processor), a plurality of clocks supplied from a clock source through a clock driver have different phases and characteristics according to a clock pattern path to destination. Accordingly, the DSP latching data significantly affects the entire SNR (Signal to Noise Ratio) or performance depending on what kind of clock is used.

The elements that change a clock's characteristic and delay in a conventional development are divided into three elements. The first element is values of R, L and C. The second element is a driver delay. The third element is a characteristic change by elements peripheral to pattern that a clock passes. These three elements are difficult to change once they are designed and the PCB is manufactured.

In this regard, a developer has to inevitably expend extensive costs and time since he must manufacture a plurality of PCBs. Furthermore, the developer is severely inconvenienced as he must change the values of R, L and C elements directly whenever any delicate external changes occur.

More specifically, this is because a clock characteristic and a board which employs an A/D or D/A converter and processes digital signals by DSP must change and test a clock element until a desired specification is obtained in order to design and manufacture the board. Therefore, a plurality of PCBs must be manufactured and be tested whenever each element changes.

Further, the characteristics of the PCBs tend to change due to the manufacturing environment although the PCBs of a desired specification are intended. Therefore, a delicate difference from one board to another board may be overcome by changing the values of R, L and C elements in order to optimize the characteristic change.

For the above reasons, a developer must expend significant costs and time since he must manufacture a plurality of PCBs and change the values of R, L and C elements directly whenever the delicate external changes are encountered.

DISCLOSURE OF THE INVENTION

The objective of the present invention is to provide a method for optimizing a DSP input clock using a clock comparing/analyzing circuit so that an optimal characteristic can be obtained by enabling three elements' values of R, L and C, a driver delay and a characteristic change by peripheral elements of patterns that a clock passes to change. The optimal characteristic can be provided by checking said operation periodically through a timer and by searching and connecting the optimal path even though peripheral environments are changed.

To accomplish the above-mentioned objective, the method for optimizing a DSP (Digital Signal Processor) comprises the following steps of: comparing noises of paths when the paths are inputted from a plurality of patterns; selecting a path of the lowest noise level based on the comparison result; applying a delay offset to the selected path; calculating a maximum SNR(Signal to Noise Ratio) value; and determining an optimal path and delay.

Further, to accomplish the object of the present invention, the method further comprises a step of checking said operation periodically by a timer and automatically searching and connecting the optimal path.

According to the present invention, a pattern of the lowest noise level is searched by scanning the paths from a plurality of patterns individually. The maximum SNR value is searched by applying a delay offset to the optimal path having the lowest noise level. The optimal path is searched and connected by checking said operation periodically by a timer. By doing so, the optimal characteristic can be provided even though peripheral environments change.

Further, the clock path in the optimized situation can be searched when a test bench board is developed to initially test through said configuration. In case various situations are changed after the fixed PCB is manufactured, the optimal situation can be detected and the optimal SNR can be obtained by applying a corresponding compensation.

Further, through the above advantages, a developer can reduce development costs. The developer can also remove a work that should set up accordingly. Additionally, a path and SNR of the best characteristic can be provided even when the manufactured board is significantly changed.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 shows a block diagram of a system for optimizing a DSP input clock using a clock comparing/analyzing circuit according to the present invention;

FIG. 2 shows a block diagram of another system for optimizing a DSP input clock using a clock comparing/analyzing circuit according to the present invention; and

FIG. 3 is a flow chart illustrating a method for optimizing a DSP input clock using a clock comparing/analyzing circuit according to the present invention.

BEST MODE FOR CARRYING OUT THE INVENTION

The embodiment of the present invention will be described with reference to the accompanying drawings in accordance with the above-identified technical scope of the present invention.

At first, the present invention can search a clock path in the optimized situation when a test bench board is developed for a change of environment and an initial test. In case various situations are changed after the fixed PCB is manufactured, the invention can apply the corresponding compensation. By doing so, the invention can detect the optimized situation and obtain the optimized SNR.

Generally, characteristic of an input clock and quality of a waveform are an important element that determines the whole SNR in a board using a DSP and an A/D converter. A sampling noise occurs according to a timing latched by a clock where it is coupled with a quantization noise and becomes a larger noise element. Further, when a delay and phase between a clock inputted to an A/D converter and a clock inputted to the DSP are changed while being transmitted to the path according to external elements, data processed in the DSP can be recognized as different data.

Therefore, a developer changes and tests paths that a clock passes in order to select and use a clock unavoidably passing between high-speed digital data and important data in an optimum way.

Therefore, the present invention provides a method which can obtain an optimal path and a maximum SNR by using a PLD and other additional elements that perform the above operations and comparing values of the scanned path through a CPU. The invention is largely divided into two operations.

FIG. 1 and FIG. 2 show block diagrams of systems for optimizing a DSP input clock using a clock comparing/analyzing circuit according to the present invention.

In the first step, the inventive method of optimizing the DSP input clock using the clock comparing/analyzing circuit searches a path of the lowest noise level among a plurality of paths that a clock passes. The clock is inputted from a VCXO (10) to DSP (22, 33, 43) and A/D converter (31) through three paths as shown in FIG. 1.

As shown, the clock passes through a different path. The clock input through each path is inputted to DSP (22, 33, 43) through a PLD (500).

Further, a circuit, which is configured as shown in FIG. 2, has the three paths and reads out a RSSI (Received Signal Strength Indicator) value from a Rx DSP. The RSSI value means an AGC gain within DSP (220, 330, 430) and can be represented by the following: Gain(x)=Gain(x−1)+Error_out(x). That is, it is a function that is affected by the gain of the previous step.

Here, the Rx DSP adjusts a signal to a definite level using the AGC value. That is, if a signal of low level is inputted, then the Rx DSP has a high AGC value. If a signal of high level is inputted, then it has a low AGC value. Using this, an initial noise level can be measured.

Meanwhile, characteristics of input clock as mentioned above are important so as to have the Rx input signal of the lowest noise level. In order to search the characteristics of the input clock, it is set so that there are no signals to the Rx input. The AGC of the three paths shown in FIG. 3 is measured and the path having the largest AGC value is searched.

PLD (500) connects the path having the largest AGC value based on the AGC values which are measured by means of an input path and an output path to the DSP for each path. This can be simply embodied by making a comparing program with C language in AP.

Here, if the result carrying out the embodied program is as the following, then (1) a path having the highest AGC value corresponds to a path having the lowest noise level and (2) PLD (500) will connect the path of the lowest noise level after comparing the three paths.

-   -   Best Path=Path2 (Selected Path is Path1)     -   AGC value of DSP for Path1: 741b!!     -   AGC value of DSP for Path2: 543c!!     -   AGC value of DSP for Path3: 562a!!

In fact, a noise level of the path is close to about −80 dBm. At the second step, when the path of the lowest noise level has been determined, the method that give a delay offset to increase SNR value must be applied.

If a clock of VCXO (10, 100) is 50 MHz, then it has a period of 20 ns and an offset of rising edge ranges from +10 ns to −10 ns.

Meanwhile, PLD (500) has a method that fits according to the composition tool function of VHDL and a function that can provide a delay by changing the paths. Here, when the delay is divided into nine steps of +8 ns, +6 ns, +4 ns, +2 ns, 0 ns, −2 ns, −4 ns, −6 ns, −8 ns, an option to each delay is given to the PLD source, and SNR values in the DSP may be read by applying the nine steps from +8 ns to −8 ns in sequence as follows:

-   -   AGC value of DSP for Delay −8 ns: 112a!!     -   AGC value of DSP for Delay −6 ns: a95!!     -   AGC value of DSP for Delay −4 ns: 9fa!!     -   AGC value of DSP for Delay −2 ns: 83c!!     -   AGC value of DSP for Delay 0 ns: d43!!     -   AGC value of DSP for Delay +2 ns: 142a!!     -   AGC value of DSP for Delay +4 ns: 1e1b!!     -   AGC value of DSP for Delay +6 ns: 343c!!     -   AGC value of DSP for Delay +8 ns: 1b2a!!

Since the SNR value is a signal to noise ratio value, it can be derived by comparing the ratio of signal level through the nine delay steps with the noise level of the path determined at the first step.

But, since the AGC value represents a signal level, the value for the delay of −2 ns among the nine values is the lowest which corresponds to a signal having the maximum SNR.

As described above, in the board that is tested through the two steps above, a clock source inputted from the VCXO to the DSP through the driver has the best characteristic. This can be seen that the SNR value has the optimal value when it has the delay of −2 ns.

The two steps provide switching functions that establish the path and generate the delay in the PLD and can be simply embodied using C language in the AP. Through the steps, a developer can design a final board using the path selected from the steps.

The procedures as mentioned above are illustrated with reference to the accompanying drawing.

FIG. 3 is a flow chart illustrating the method of optimizing a DSP input clock using a clock comparing/analyzing circuit according to the present invention.

As shown, the inventive method comprises the following steps of: when paths are inputted from a plurality of patterns (ST11), comparing noises of the paths (ST12); selecting a path of the lowest noise level based on the comparison result (ST13); comparing a delay offset for applying a delay offset (ST14); calculating an optimal SNR value (ST15); and determining an optimal path and delay.

The present invention relates to a method of searching an optimal clock and then automatically selecting a clock which has the best performance by comparing clocks from each pattern. In the method, the first function serves to scan all paths from a plurality of patterns individually and search a pattern having the lowest noise level. The second function serves to search the maximum SNR(Signal to Noise) value by giving a delay offset to the optimal path having the lowest noise level which is searched from the first function.

Further, the invention can apply to any system and method to determine whether any path is determined when designing the board initially as mentioned above. The delay having any value is suitable. In case of using the invention, it can be established by utilizing a circuit that has the optimal SNR value by checking its state periodically through a timer which checks its state periodically.

Alternatively, the invention can also provide a function that its state feeds back to maintain the optimal state when external environments are changed randomly and impediment elements are generated. If only a DSP is used to select any path from a plurality of paths, then the invention can be applied to connect signals between the same boards as well as different boards. If the PLD is used to insert into a backboard, then it can also select and use the path having the best characteristics among a plurality of signals passing the backboard.

Specifically, the method of the invention can provide the optimal characteristics in case peripheral environments change by checking the operation periodically through a timer and searching and connecting the optimal path.

While the present invention has been shown and described with respect to a particular method for optimizing a DSP input clock using a clock comparing/analyzing circuit, it will be apparent to those skilled in the art that many changes and modifications may be made without departing from the scope of the invention as defined in the appended claims and those equivalent thereto. 

1. A method of optimizing a DSP (Digital Signal Processor) input clock, comprising the steps of: comparing noises of paths, when the paths are inputted from a plurality of patterns; selecting a path of the lowest noise level based on the comparison result; applying a delay offset to the selected path; calculating a maximum SNR(Signal to Noise Ratio) value; and determining an optimal path and delay.
 2. The method of claim 1, wherein the SNR value is calculated by comparing the noise level of the determined path with a level of a signal from the determining step.
 3. The method of claim 1, further comprising a step of checking said operation periodically by a timer, automatically searching and connecting the optimal path. 